import request from '@/request/request.js';


/**
 * @description  任务列表
 */
export function taskDistributionList(param){

    return request({
        url: '/task-distribution/page',
        headers: {
            isToken: true
        },
        method: 'get',
        params: param
    })
}

/**
 * 完成任务
 */
export function finishTask(param, taskCode){

    return request({
        url: `/task-distribution/${taskCode}/status`,
        headers: {
            isToken: true
        },
        method: 'put',
        params: param
    })
}